package com.wisnews.mapper.sr;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.wisnews.pojo.sec.entity.Operator;
import com.wisnews.pojo.sr.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuyd
 * @since 2021-01-15
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @Select(" select * from t_sr_comment ${ew.customSqlSegment}")
    IPage<Comment> getComments(@Param(Constants.WRAPPER) Wrapper<Comment> queryWrapper,IPage iPage);

}
